<?php

class RechargeBuyGIftPackAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING
    );

    public function execute($userId, $giftPackageId,$reqTime,$sign) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            RechargeService::get()->buyGiftPack($userId, $giftPackageId,$reqTime,$sign)
        );
    }
}